package com.userAuthApplication.client;

import com.google.gwt.core.client.GWT;
import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;

@RemoteServiceRelativePath("UserAuthApplicationService")
public interface UserAuthApplicationService extends RemoteService {
  // Sample interface method of remote interface
  String getMessage(String msg);

  /**
   * Utility/Convenience class.
   * Use UserAuthApplicationService.App.getInstance() to access static instance of UserAuthApplicationServiceAsync
   */
  public static class App {
    private static UserAuthApplicationServiceAsync ourInstance = GWT.create(UserAuthApplicationService.class);

    public static synchronized UserAuthApplicationServiceAsync getInstance() {
      return ourInstance;
    }
  }
}
